function addButtonActionListenner() {
	addShowDivListener(document.getElementById('id_LoginButton'), document
			.getElementById('id_LoginDiv'));
}

function ini() {
	addButtonActionListenner();
	addGoToTopDiv();
}
/* 下面是可重用的函数 */

function addShowDivListener(aO, oDiv) {
	aO.popView = oDiv;
	aO.popView.style.display = 'none';
	aO.onclick = function() {
		if (this.popView.style.display == 'none') {
			this.popView.style.display = 'block';
			this.style.background = 'rgb(200,200,200)';
		} else {
			this.popView.style.display = 'none';
			this.style.background = 'transparent';
		}
	};
	aO.onmouseover = function() {
		this.style.background = 'rgb(200,200,200)';
	};

	aO.onmouseout = function() {
		if(this.popView.style.display == 'none')
			this.style.background = 'transparent';
	};
}

function addGoToTopDiv(){
	var div = document.createElement('div');
	div.style.borderColor = 'gray';
	div.style.borderStyle = 'solid';
	div.style.borderWidth = '1px';
	div.style.width = '30px';
	div.style.height = '30px';
	div.style.display = 'inline-block';
	div.style.background = 'rgb(200,200,200)';
	div.style.color = 'white';
	div.style.position = 'fixed';
	div.style.top = '400px';
	div.style.left = '100px';
	div.style.padding = '5px';
	div.innerHTML = '<a href="#" style="">顶</a>';
	document.body.appendChild(div);
}
